package cc.openkit.kitservice.demo.impl;

import cc.openkit.kitdao.demo.DemoMapper;
import cc.openkit.kitmodel.demo.Demo;
import cc.openkit.kitservice.demo.DemoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DemoServiceImpl extends ServiceImpl<DemoMapper, Demo> implements DemoService {

    @Autowired(required = false)
    private DemoMapper demoMapper;

    @Override
    public Demo addOne(Demo demo) {
        demoMapper.insert(demo);
        return demo;
    }
}
